import Login from "../pages/Login/index"
import PayManagement from "../pages/PayManagement/index"
import Payways from "../pages/PayManagement/Payways/index"
import PictureManagement from "../pages/PictureManagement/index"
import CarouselManagement from "../pages/PictureManagement/CarouselManagement/index"
import ProductManagement from "../pages/ProductManagement/index"
import ProductList from "../pages/ProductManagement/ProductList/index"
import ProductType from "../pages/ProductManagement/ProductType/index"
import TransactionManagement from "../pages/TransactionManagement/index"
import Amount from "../pages/TransactionManagement/Amount/index"
import Order from "../pages/TransactionManagement/Order/index"
import Refund from "../pages/TransactionManagement/Refund/index"
import Welcome from "../pages/Welcome/index"
import Page404 from "../pages/404/index"
import {MenuUnfoldOutlined,MenuFoldOutlined,BankTwoTone,
PictureTwoTone,ShoppingTwoTone,AccountBookTwoTone,DollarCircleTwoTone,
FileImageTwoTone,PropertySafetyTwoTone,ProfileTwoTone,
GoldTwoTone,InteractionTwoTone,DatabaseTwoTone,BuildTwoTone} from '@ant-design/icons';
const routes=[
    {
        path:"/404",
        component:Page404 ,
        auth:false
    },
    {
        path:"/Login",
        component:Login,
        auth:false,
        exact:true
    },
    {
        path:"/",
        name:"系统首页",
        icon:<BankTwoTone twoToneColor="#eb2f96"/>,
        component:Welcome,
        auth:true,
        exact:true
    },
    {
        path:"/payManagement",
        name:"支付管理",
        icon:<DollarCircleTwoTone twoToneColor="#eb2f96"/>,
        component:PayManagement ,
        auth:true,
        exact:false,        //有children子路由的不能使用严格模式
        children:[
            {
                path:"/payManagement/payWays",
                name:"支付方式",
                icon:<GoldTwoTone />,
                component:Payways ,
                auth:true,
                exact:true
            }
        ]
    },
    {
        path:"/pictureManagement",
        name:"图片管理",
        icon:<PictureTwoTone twoToneColor="#eb2f96"/>,
        component:PictureManagement ,
        auth:true,
        exact:false,        //有children子路由的不能使用严格模式
        children:[
            {
                path:"/pictureManagement/carouselManagement",
                name:"轮播图管理",
                icon:<FileImageTwoTone />,
                component:CarouselManagement ,
                auth:true,
                exact:true
            }
        ]
    },
    {
        path:"/productManagement",
        name:"产品管理",
        icon:<ShoppingTwoTone twoToneColor="#eb2f96"/>,
        component:ProductManagement ,
        auth:true,
        exact:false,        //有children子路由的不能使用严格模式
        children:[
            {
                path:"/productManagement/productList",
                name:"产品列表",
                icon:<DatabaseTwoTone />,
                component:ProductList ,
                auth:true,
                exact:true
            },
            {
                path:"/productManagement/productType",
                name:"产品类型",
                icon:<BuildTwoTone />,
                component:ProductType ,
                auth:true,
                exact:true
            }
        ]
    },
    {
        path:"/transactionManagement",
        name:"交易管理",
        icon:<AccountBookTwoTone twoToneColor="#eb2f96"/>,
        component:TransactionManagement ,
        auth:true,
        exact:false,        //有children子路由的不能使用严格模式
        children:[
            {
                path:"/transactionManagement/Amount",
                name:"订单管理",
                icon:<ProfileTwoTone />,
                component:Amount ,
                auth:true,
                exact:true
            },
            {
                path:"/transactionManagement/Order",
                name:"交易金额",
                icon:<PropertySafetyTwoTone />,
                component:Order ,
                auth:true,
                exact:true
            },
            {
                path:"/transactionManagement/Refund",
                name:"退款管理",
                icon:<InteractionTwoTone />,
                component:Refund ,
                auth:true,
                exact:true
            }
        ]
    }
]
export default routes